]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
status/nightLight: Hide when unsupported
authorFlorian Müllner <fmuellner@gnome.org>
Mon, 15 Aug 2022 12:33:00 +0000 (14:33 +0200)
committerMarge Bot <marge-bot@gnome.org>
Thu, 18 Aug 2022 15:40:49 +0000 (15:40 +0000)
https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/5752

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2425>

js/ui/status/nightLight.js

index 1a0ee303a3f8dd5a96fa9eaa01c2756619711b5a..0d148e3ce770809ef0646750b3cea76f265fd333 100644 (file)
@@ -22,6 +22,11 @@ class NightLightToggle extends QuickToggle {
             toggleMode: true,
         });
 
+        const monitorManager = global.backend.get_monitor_manager();
+        monitorManager.bind_property('night-light-supported',
+            this, 'visible',
+            GObject.BindingFlags.SYNC_CREATE);
+
         this._settings = new Gio.Settings({
             schema_id: 'org.gnome.settings-daemon.plugins.color',
         });